Table of Contents Previous Section

Page Navigation

WebScript provides a special method for accessing another page in an application: the pageWithName: method. It takes the name of a page as an argument. You most commonly use pageWithName: inside of a method that returns a new page for display in the browser. Such a method could be associated with a hyperlink or a submit button. For example:

- contactPsychicNetwork
{
    id nextPage;
    nextPage = [WOApp pageWithName:@"Predictions"]; 
    return nextPage;
}

Table of Contents Next Section